<?php

namespace App\Models\Crm;

use Illuminate\Database\Eloquent\Model;

class Article extends Application
{
    protected $fillable = ['title', 'author', 'from', 'is_top', 'description', 'thumb', 'content', 'created_at', 'updated_at'];

    //文章与分类关系，
    public function category()
    {
        return $this->belongsTo('App\Models\Crm\ArticleCategory');
    }
}
